import { request } from '@/utils/request.js'
export default {
    get_list(params) {
        return request({
            url: 'composer/index',
            method: 'get',
            params
        })
    },
    get_deta(id) {
        return request({
            url: 'composer/read/' + id,
            method: 'get'
        })
    },
    save(data = {}) {
        return request({
            url: 'composer/save',
            method: 'post',
            data
        })
    },
    delete_data(params = {}) {
        return request({
            url: 'composer/delete',
            method: 'delete',
            params
        })
    }
}